package com.atguigu.gulimall.seckill.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-coupon")
public interface CouponFeignService {

    /**
     * 获取最近几天的最新秒杀活动列表
     */
    @RequestMapping("/coupon/seckillsession/newest/session/{days}")
    R getNewestSession(@PathVariable("days") Integer days);
}
